//
//  YSAccountCenterCell.m
//  Yueshi
//
//  Created by Northwan on 15/7/30.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSAccountCenterCell.h"

@implementation YSAccountCenterCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"YSAccountCenterCell";
    YSAccountCenterCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[YSAccountCenterCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        YSAccountCenterItemView *accountItemView =  [[YSAccountCenterItemView alloc]init];
        self.accountItemView = accountItemView;
        [self addSubview:accountItemView];
    }
    return self;
}

-(void)setAccountItemFrame:(YSAccountCenterItemFrame *)accountItemFrame{
    _accountItemFrame = accountItemFrame;
    _accountItemView.accountItemFrame = accountItemFrame;
}

@end
